package org.reyton.service.impl;

import org.reyton.dao.SysEmployeeDao;
import org.reyton.entity.SysEmployee;
import org.reyton.service.SysEmployeeService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;

/**
 * 员工表的业务实现类
 * Created by reyton on 16-11-30.
 */
@Service("sysEmployeeService")
public class SysEmployeeServiceImpl implements SysEmployeeService {
    @Resource(name = "sysEmployeeDao")
    private SysEmployeeDao sysEmployeeDao;

    public void setSysEmployeeDao(SysEmployeeDao sysEmployeeDao) {
        this.sysEmployeeDao = sysEmployeeDao;
    }

    @Override
    public SysEmployee login(String sn, String password) {
        return sysEmployeeDao.findByInfo(sn, password);
    }

}
